//字体大小
@font-size-normal: 14px;
//注释字体大小
@font-size-sub: 12px;
//字体占重 一般
@font-weight-normal: 400;
//字体占重 大
@font-weight-big: 500;
//字体family
@primary-font-family: @primary-font-family;

label {
    font-weight: @font-weight-normal;
    color: #555555;
    font-family: @primary-font-family;
}

//1.输入框
.c-form-input,
.ant-select-selection,
.ant-calendar-picker-input {
    border-radius: 4px;
    border: 1px solid #CCCCCC;
    background: #FFFFFF;
    font-size: @font-size-normal;
    font-weight: @font-weight-normal;
    color: #222222;
    font-family: @primary-font-family;

    &::placeholder,
    .ant-select-selection__placeholder,
    .ant-select-search__field__placeholder {
        color: #CCCCCC;
    }
}

//禁用状态
.c-form-disabled,
.ant-select-disabled,
.ant-input[disabled] {
    background: #FAFAFA !important;
    font-size: @font-size-normal;
    font-weight: @font-weight-normal;
    color: #999999;
    font-family: @primary-font-family;

    .ant-select-selection-selected-value {
        background: #FAFAFA !important;
    }
}

//非空报错提示状态
.has-error .ant-input,
.has-error .ant-input:hover,
.has-error .ant-select-open .ant-select-selection,
.has-error .ant-select-focused .ant-select-selection {
    background: #FFFFFF;
    border-radius: 2px;
    border: 1px solid #D70016;
}

//下拉框样式
.c-form-select-dropdown {
    background: #FFFFFF;
    border-radius: 4px;
    box-shadow: 0px 2px 8px 0px rgba(0, 35, 114, 0.1);
    font-size: @font-size-normal;
    font-weight: @font-weight-big;
    color: #555555;
    font-family: @primary-font-family;

    .ant-select-dropdown-menu-item-active {
        color: @primary-color;
    }
}

.ant-select-tree li .ant-select-tree-node-content-wrapper {
    font-size: @font-size-normal;
    font-weight: @font-weight-big;
    color: #555555;
    font-family: @primary-font-family;

    &:hover {
        color: @primary-color;
    }
}

.c-label::after {
    display: none;
}

.c-form-label {
    margin-right: 10px;
    height: 100%;

    .c-form-label-sub {
        text-align: center;
        font-size: @font-size-sub;
    }
}

.ant-form-item-with-help {
    margin-bottom: 6px !important;
}

.c-label-title {
    margin: 0 8px 0 2px;
}

.c-label-sub {
    display: block;
    margin: 0 8px 0 2px;
    font-weight: 500;
    font-size: 12px;
    color: #999999;
    line-height: 14px;
    text-align: left;
    font-style: normal;
    text-transform: none;
    white-space: nowrap;
}